//
//  QZNetworkTool.m
//  map
//
//  Created by 000 on 16/9/19.
//  Copyright © 2016年 faner. All rights reserved.
//

#import "QZNetworkTool.h"
#import "Reachability.h"

@implementation QZNetworkTool

//是否wifi
+ (BOOL)isEnableWifi
{
    //    return [Reachability reachabilityForLocalWiFi].currentReachabilityStatus != NotReachable;
    return [Reachability reachabilityForLocalWiFi].isReachableViaWiFi;

}

//是否有网络
+ (BOOL)isEnableInternet
{
    return [Reachability reachabilityForInternetConnection].currentReachabilityStatus != NotReachable;
}


@end
